package lxbAdmin.userSystem.common;

/**
 * @date 2019-9-6
 * @description 处理错误码枚举类
 */
public enum ErrorCode {

    ERROR_DEFAULT(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CUSTOMIZE_CODE + "01", "系统内部错误"),
    FAIL_DEFAULT(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CUSTOMIZE_CODE + "02", "当前操作失败"),
    FAIL_REPEATED_NAME(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CUSTOMIZE_CODE + "03", "大屏名称已存在，请修改!"),
    FAIL_SCREEN_DELETED(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CUSTOMIZE_CODE + "04", "此大屏已删除，请刷新页面重新操作!"),
    FAIL_TEMPLATE_DELETED(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CUSTOMIZE_CODE + "05", "此模板已删除，请刷新页面重新操作!"),
    //大屏工具2.0错误码
    MG_2_MODU_SELECT_01(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CONFIG_CODE_2 + "01", "模块查询失败！"),
    FAIL_MODU_CONFIG_EXECUTION(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CONFIG_CODE_2 + "02", "组件配置预执行SQL失败，请检查指标配置！"),
    FAIL_MODU_CONFIG_PARAM(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CONFIG_CODE_2 + "03", "参数配置错误！"),
    FAIL_MODU_CONFIG_DATE_COLUMN(ErrorConstants.YXJC_SYS_CODE + ErrorConstants.CONFIG_CODE_2 + "04", "未查询到统计日期字段！");


    private String code;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
